package com.dingding.order.dto.myorder;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

import com.dingding.common.core.config.ImageUploadConfig;

/**
 * 
 * @ClassName: ResHistoryOrderDetailDTO
 * @Description: 获取历史订单详情响应Bean
 * @author YHQ
 * @date 2016年9月22日 下午3:27:28
 * @since V2.5.0
 * 
 */
@SuppressWarnings("serial")
public class ResHistoryOrderDetailDTO implements Serializable {

	private Integer cancelType; // 取消类型 1.本人取消，2.对方取消，3.自动取消
	private BigDecimal couponMoney; // 优惠券金额
	private Date createTime; // 下单时间
	private BigDecimal distance; // 总里程
	private BigDecimal driverRcvIntegral; // 赠送积分
	private BigDecimal duration; // 完成订单时长
	private BigDecimal durationCost; // 时长费用
	private String endAddress; // 目的地
	private Date endTime; // 结束时间
	private Date cancelTime;//取消订单时间
	private String evaluateLabel; // 标签
	private BigDecimal evaluateLevel; // 订单星级评分
	private String evaluateContent; // 订单自定义评价
	private Integer isComment; // 车主是否被评价过 1：未评价 2：评价过
	private String message; // 留言
	private String nickName; // 昵称
	private Integer number; // 人数
	private String oid; // 订单Id
	private BigDecimal orderCost; // 订单费用
	private BigInteger orderType; // 订单类型
	private BigDecimal platformCost; // 平台费用
	private Integer publishType; // 发单类型 1:顺风车 2:出租车 3:专车4:一口价
	private Date setOutTime; // 出发时间
	private String startAddress; // 出发地
	private BigDecimal totalMoney; // 金额
	private String userAvatar; // 对方用户头像
	private BigDecimal userLevel; // 用户星级
	private String userTabloidAvatar; // 对方用户头像缩略图
	private String lisencePlate; // 车辆车牌号
	private String vehicleColor; // 车辆颜色
	private String vehicleModel; // 车辆型号
	private String vehicleType; // 车辆类型
	
	
	
	

	public Integer getCancelType() {
		return cancelType;
	}

	public void setCancelType(Integer cancelType) {
		this.cancelType = cancelType;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getEndAddress() {
		return endAddress;
	}

	public void setEndAddress(String endAddress) {
		this.endAddress = endAddress;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getEvaluateLabel() {
		return evaluateLabel;
	}

	public void setEvaluateLabel(String evaluateLabel) {
		this.evaluateLabel = evaluateLabel;
	}

	public Integer getIsComment() {
		return isComment;
	}

	public void setIsComment(Integer isComment) {
		this.isComment = isComment;
	}

	public String getLisencePlate() {
		return lisencePlate;
	}

	public void setLisencePlate(String lisencePlate) {
		this.lisencePlate = lisencePlate;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getOid() {
		return oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public String getOrderCost() {
		
		if(orderCost !=null){
			return String.valueOf(orderCost);
		}
		
		return null;
	}

	public BigInteger getOrderType() {
		return orderType;
	}

	public void setOrderType(BigInteger orderType) {
		this.orderType = orderType;
	}

	public String getPlatformCost() {
		
		if(platformCost != null){
			return String.valueOf(platformCost);
		}
		
		return null;
	}


	public Integer getPublishType() {
		return publishType;
	}

	public void setPublishType(Integer publishType) {
		this.publishType = publishType;
	}

	public Date getSetOutTime() {
		return setOutTime;
	}

	public void setSetOutTime(Date setOutTime) {
		this.setOutTime = setOutTime;
	}

	public String getStartAddress() {
		return startAddress;
	}

	public void setStartAddress(String startAddress) {
		this.startAddress = startAddress;
	}

	public String getUserAvatar() {
		return ImageUploadConfig.getIMAGE_ACCESS_PATH() + userAvatar;
	}

	public void setUserAvatar(String userAvatar) {
		this.userAvatar = userAvatar;
	}

	public String getUserTabloidAvatar() {
		return ImageUploadConfig.getIMAGE_ACCESS_PATH() +userTabloidAvatar;
	}

	public void setUserTabloidAvatar(String userTabloidAvatar) {
		this.userTabloidAvatar = userTabloidAvatar;
	}

	public String getVehicleColor() {
		return vehicleColor;
	}

	public void setVehicleColor(String vehicleColor) {
		this.vehicleColor = vehicleColor;
	}

	public String getVehicleModel() {
		return vehicleModel;
	}

	public void setVehicleModel(String vehicleModel) {
		this.vehicleModel = vehicleModel;
	}

	public String getVehicleType() {
		return vehicleType;
	}

	public void setVehicleType(String vehicleType) {
		this.vehicleType = vehicleType;
	}

	public String getDurationCost() {
		if(durationCost == null){
			return null;
		}
		return String.valueOf(durationCost);
	}

	public Date getCancelTime() {
		return cancelTime;
	}

	public void setCancelTime(Date cancelTime) {
		this.cancelTime = cancelTime;
	}

	public String getEvaluateContent() {
		return evaluateContent;
	}

	public void setEvaluateContent(String evaluateContent) {
		this.evaluateContent = evaluateContent;
	}

	public BigDecimal getCouponMoney() {
		return couponMoney;
	}

	public void setCouponMoney(BigDecimal couponMoney) {
		this.couponMoney = couponMoney;
	}

	public BigDecimal getDistance() {
		return distance;
	}

	public void setDistance(BigDecimal distance) {
		this.distance = distance;
	}

	public BigDecimal getDriverRcvIntegral() {
		return driverRcvIntegral;
	}

	public void setDriverRcvIntegral(BigDecimal driverRcvIntegral) {
		this.driverRcvIntegral = driverRcvIntegral;
	}

	public BigDecimal getDuration() {
		return duration;
	}

	public void setDuration(BigDecimal duration) {
		this.duration = duration;
	}

	public BigDecimal getEvaluateLevel() {
		return evaluateLevel;
	}

	public void setEvaluateLevel(BigDecimal evaluateLevel) {
		this.evaluateLevel = evaluateLevel;
	}

	public BigDecimal getTotalMoney() {
		return totalMoney;
	}

	public void setTotalMoney(BigDecimal totalMoney) {
		this.totalMoney = totalMoney;
	}

	public BigDecimal getUserLevel() {
		return userLevel;
	}

	public void setUserLevel(BigDecimal userLevel) {
		this.userLevel = userLevel;
	}

	public void setDurationCost(BigDecimal durationCost) {
		this.durationCost = durationCost;
	}

	public void setOrderCost(BigDecimal orderCost) {
		this.orderCost = orderCost;
	}

	public void setPlatformCost(BigDecimal platformCost) {
		this.platformCost = platformCost;
	}

}
